package org.celery.modules.order.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ShipTypeEnum {
    HOME_DELIVERY("黑猫", 1),
    SHOP_711_DELIVERY("超商7-11", 2),
    ;
    private String name;
    private int type;

    public static String getName(int status) {
        if (status == HOME_DELIVERY.getType()) {
            return HOME_DELIVERY.getName();
        } else if (status == SHOP_711_DELIVERY.getType()) {
            return SHOP_711_DELIVERY.getName();
        } else {
            return "";
        }
    }

}
